package com.tour.modules.web.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tour.modules.web.dao.TCityDao;
import com.tour.modules.web.entity.TCityEntity;
import com.tour.modules.web.service.TCityService;





@Service("tCityService")
public class TCityServiceImpl implements TCityService {
	@Autowired
	private TCityDao tCityDao;
	
	@Override
	public TCityEntity queryObject(Long id){
		return tCityDao.queryObject(id);
	}
	
	@Override
	public List<TCityEntity> queryList(Map<String, Object> map){
		return tCityDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tCityDao.queryTotal(map);
	}
	
	@Override
	public void save(TCityEntity tCity){
		tCityDao.save(tCity);
	}
	
	@Override
	public void update(TCityEntity tCity){
		tCityDao.update(tCity);
	}
	
	@Override
	public void delete(Long id){
		tCityDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		tCityDao.deleteBatch(ids);
	}
	
}
